
	
<style>
body {
	text-align:center;
	margin:0px;
}

#service_index_content {
	position: absolute;
	z-index: auto;
	height: auto;
	width: 1000px;
	left:0px;
	top:80px;

}
#service_index_menu {
	width:400px;
	padding-left:20px;
	height:auto;
	text-align:left;
	
}
#service_index_top {
	width:900px;
	height:auto;
	margin-top:10px;
	padding-left:50px;

}

#service_index_content #service_index_top table tbody tr td table {
	font-family: "ＭＳ Ｐゴシック", "ＭＳ ゴシック", "ＭＳ Ｐ明朝", "ＭＳ 明朝", "MS UI Gothic";
	font-size: 12px;
	text-align: center;
	border-top-style: solid;
	border-right-style: solid;
	border-bottom-style: solid;
	border-left-style: solid;
	border-top-color: #99C;
	border-right-color: #99C;
	border-bottom-color: #99C;
	border-left-color: #99C;
}
</style>
<!--{include /service/service_head}-->
<body>
<div id="service_index_content">
	<div id="service_index_menu">
		<ul style="padding-left : 8px, left : 0, ">
			
		</ul>
	</div>
	
	<div id="service_index_top">
	<form action="/service/index.php" id="indexform" method="get">
		<div>
			<select name="shop_id" class="f-city">
				<option value="0">選択してください</option>
				${Utility::Option(Utility::OptionArray($shopList, 'id', 'shop_name'), $defaultShopId)}
			</select>
			<input type="text" name="search_date" value="{$year}-${sprintf("%02d",$month)}-${sprintf("%02d",$day)}" onfocus="WdatePicker({lang:'jp'})" class="Wdate"/>
			<input type="submit" name="" value="検索" />
		</div>
	</form>
	
	
	

	<table width="900" cellspacing="0" cellpadding="0" border="1">
		<tbody>
			<!--{loop $hourList $index $one}-->
			<tr>
				<?php
					$tempOrderList = Preengage::GetListByHours($defaultShopId, $year, $month, $day, $one);
				?>
				<td>{$one}～</td>
				<!--{loop $tempOrderList $index1 $one1}-->
				<td>
					<?php
					$tempDevice = Devices::GetById($one1['device_id']);
					$tempService = Service::GetById($one1['service_id']);
					$tempUser = Users::GetUser($one1['user_id']);
					$tempStaff = Staff::getById($one1['designation_stuff'])
					?>
					<table cellspacing="0" cellpadding="0" border="1">
						<tbody>
							<tr>
								<td>{$tempDevice['device_name']}(機材)</td>
								<td>{$tempService['service_name']}</td>
							</tr>
							<tr>
								<td>${date("H:i", $one1['service_start_time'])}～${date("H:i", $one1['service_end_time'])}</td>
								<!--{if $one1['user_id'] > 0}-->
								<td>{$tempUser['family_name']} {$tempUser['personal_name']}</td>
								<!--{/if}-->
								<!--{if $one1['user_id'] < 1}-->
								<td>{$one1['back1']}({$one1['back2']})</td>
								<!--{/if}-->
						  </tr>
						  <tr>
						    <td>{$tempStaff['family_name']} {$tempStaff['personal_name']}</td>
								<td>担当<!--{if $one1['designation'] > 0}-->(指)<!--{/if}--></td>
						  </tr>
						  <tr>
							<!--{if $oauthMap[11] != null && $one1['service_end_time'] > $now}-->
						    <td>
								<a href="/service/editOrder.php?id={$one1['id']}">編集</a>
							</td>
							<!--{/if}-->
							<!--{if $oauthMap[12] != null && $one1['service_end_time'] > $now}-->
							<td>
								<a href="/service/index.php?id={$one1['id']}&action=del&search_date={$year}-{$month}-{$day}"
								onclick="return confirm('本当に予約をキャンセルしますか？\n担当者：{$tempStaff['family_name']} {$tempStaff['personal_name']}
								\n顧客名：{$tempUser['family_name']} {$tempUser['personal_name']}')"
								style="text-decoration: none;">削除</a>
							</td>
							<!--{/if}-->
						  </tr>
						</tbody>
					</table>
				</td>
				<!--{/loop}-->
			</tr>
			<!--{/loop}-->
			<!--{if $oauthMap[13] != null}-->
			<tr><td><a href="/service/editOrder.php">予約追加</a></td></tr>
			<!--{/if}-->
		</tbody>
	</table>
	
	
	
	
	
  	</div>
  	</div>
</body>
</html>
<script type="text/javascript"> 
	
</script> 
</html> 